package bud.web.boardbud.service;

import java.util.List;

import bud.vo.BoardBudDTO;
import bud.vo.BoardFormDTO;
import bud.vo.ReplyDTO;

public interface IBoardbudService {
	public enum BoardbudResult{OK, FAILED, NOTEXIST, INVALIDPASSWORD}
	public List<BoardBudDTO> getBoardbudList(BoardFormDTO formDTO);
	public int getBoardbudCount(BoardFormDTO formDTO);
	public BoardBudDTO getBoardbud(Integer bo_no);
	public BoardbudResult createBoardbud(BoardBudDTO boardbud);
	public BoardbudResult modifyBoardbud(BoardBudDTO boardbud);
	public BoardbudResult removeBoardbud(BoardBudDTO boardbud);
	
	//댓글 관리용 메소드 추가
	public List<ReplyDTO> getRepList(BoardFormDTO form);
	public int insertReply(ReplyDTO reply);
	public int deleteReply(ReplyDTO reply);
	
	//댓글 페이징과 관련된 메소드 추가
	public int getRepCount(Integer rep_ref_key);
	
}
